Skip to content

go.mod, go.sum: upgrade to remove old dependencies#3836

Closed
jba wants to merge 1 commit into
cockroachdb:masterfrom
jba:upgrade
Closed

go.mod, go.sum: upgrade to remove old dependencies#3836
jba wants to merge 1 commit into
cockroachdb:masterfrom
jba:upgrade

Conversation

@jba

@jba jba commented Aug 12, 2024

Copy link
Copy Markdown

Upgrade cobra, prometheus and golang.org/x/perf to the latest versions. This removes a lot of clutter from go.sum, including the spiral of old cloud.google.com/go versions. Even though these old versions aren't part of the build, the go command is forced to fetch their go.mod files.

Upgrade cobra, prometheus and golang.org/x/perf to the latest versions.
This removes a lot of clutter from go.sum, including the spiral of old
cloud.google.com/go versions. Even though these old versions aren't part
of the build, the go command is forced to fetch their go.mod files.
@jba jba requested a review from a team as a code owner August 12, 2024 13:27
@jba jba requested a review from jbowens August 12, 2024 13:27
@cockroach-teamcity

Copy link
Copy Markdown
Member

This change is Reviewable

Comment thread go.mod
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this dep coming from, and what is it used for?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go mod why says:

github.com/cockroachdb/pebble
github.com/prometheus/client_golang/prometheus                                                                                               
github.com/prometheus/common/expfmt
github.com/munnerz/goautoneg  

The expfmt package uses it twice:

ParseAccept parses an accept header:
https://github.com/munnerz/goautoneg/blob/master/autoneg.go#L93

@xxmplus

xxmplus commented May 18, 2026

Copy link
Copy Markdown
Contributor

Close to due to age

@xxmplus xxmplus closed this May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants